import React from "react";
import "./index.css";

class HelloWorld extends React.Component {
    handleClick =()=>{
        console.log("111")
    };
    static defaultProps = {
        content: "默认标题"
    }
    state = {title:0,
        a:0,
        b:1,
        arr:[0,1]};

    // componentDidMount() {
    //     setInterval(()=>{
    //         this.setState({
    //             title:this.state.title +1,
                
    //             // arr:this.state.arr.push(this.state.a+this.state.b)
    //         });
    //     },1000);
    // }
    
    render() {
        // const text = "Hello word";
        return <div className="helloworld" onClick={this.handleClick}>            {/* <h1>{this.props.content} - {this.state.title}</h1> */}
            {/* <h1>{this.state.arr.join()}</h1> */}
           
        </div>;
    }
    
}
export default HelloWorld;